package com.tsd.base.service;

import com.tsd.base.entity.BaseAssistData;
import com.tsd.base.entity.BaseAssistDataExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：BaseAssistData服务实现层接口
 *
 * @author zsy
 * @date 2020/12/29 15:22:59
 */
public interface BaseAssistDataService {

    /**
     * 描述：根据id获取BaseAssistData
     *
     * @param id
     */
    BaseAssistData getBaseAssistDataById(Long id) throws Exception;

    /**
     * 描述：根据sid获取BaseAssistData
     *
     * @param sid
     */
    BaseAssistDataExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除BaseAssistData
     *
     * @param id
     */
    void deleteBaseAssistData(String id, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新BaseAssistData
     *
     * @param record
     * @param opUser
     */
    BaseAssistData saveBaseAssistData(BaseAssistData record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询BaseAssistData
     *
     * @param params
     * @param page
     */
    List<BaseAssistDataExt> findBaseAssistDatas(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询BaseAssistData
     *
     * @param params
     */
    List<BaseAssistDataExt> findBaseAssistDatas(Map<String, Object> params) throws Exception;

    /**
     * 批量删除辅助数据
     *
     * @param sidList
     * @param opUser
     * @throws Exception
     */
    void batchDeleteBaseAssistData(List<String> sidList, SysUser opUser) throws Exception;

    /**
     * 根据分类名称搜索辅助数据列表
     *
     * @param typeNameList
     * @param opUser
     * @return
     */
    Map<String, Object> findBaseAssistDataFromTypeNameList(List<String> typeNameList, SysUser opUser);
}
